<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/boot.js"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="flexrow">
            <div class="layui-panel list-container">
                <table class="layui-table" lay-data="{id: 'datagrid'}" lay-filter="datagrid">
                    <thead>
                        <tr>
                            <th lay-data="{field:'column_name'}">字段名</th>
                            <th lay-data="{field:'column_description'}">字段描述</th>
                            <th lay-data="{field:'column_type'}">物理类型</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
    <div id="opcontainer">
        <button class="layui-btn layui-btn-primary" onclick="HandleClose()">关闭</button>
    </div>
</body>
<script>
    $(function() {
        BindTableData();
    })

    function BindTableData() {
        var param = {
            table_id: GetUrlParam("table_id")
        }
        BindTable("datagrid", "system/codegen/column/list", param);
    }

    function HandleClose() {
        CloseDialog();
    }
</script>

</html>